<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/23
 * Time: 10:06
 */

namespace app\weixin\controller;
use think\Db;

class CityPartner extends Base
{
   public function index(){
       $this->assign('title','城市合伙人');

       //页面内容
        $data = Db::table('wechat_sstz')->where(['id' => 181])->select();
       foreach ($data as $k => $v){
           $data[$k]['son'] = Db::table('wechat_sstz')->where(['pid' => $v['id']])->select();
       }
       $this->assign('data',$data);
       return view();
   }
}